import 'package:bxultimate/app/pages/package.dart';
import 'package:bxultimate/app/router/middleware/LoginUserMiddleware.dart';
import 'package:bxultimate/app/router/router_name.dart';
import 'package:get/get.dart';

List<GetPage> userRouters = [
  // 登录
  GetPage(
      name: RouterName.userLogin,
      page: () => AuthLoginPage(),
      binding: AuthLoginBinding()),
  GetPage(
      name: RouterName.userLoginSms,
      page: () => AuthSmsLoginPage(),
      binding: AuthSmsLoginBinding()),
  GetPage(
      name: RouterName.userForgotPassword,
      page: () => AuthForgotPwdPage(),
      binding: AuthForgotPwdBinding()),
  GetPage(
      name: RouterName.userRegister,
      page: () => AuthRegisterPage(),
      binding: AuthRegisterBinding()),

  // 用户信息
  GetPage(
      name: RouterName.userInformation,
      page: () => UserInformationIndexPage(),
      binding: UserInformationIndexBinding(),
      middlewares: [LoginUserMiddleware()]),
  //
  // 用户完善信息
  GetPage(
      name: RouterName.userInformationComplete,
      page: () => UserCompleteInformationPage(),
      binding: UserCompleteInformationBinding()),
  //
  //
  // 系统设置
  GetPage(
      name: RouterName.userSystemSettingIndex,
      page: () => SystemSettingIndexPage(),
      binding: SystemSettingIndexBinding()),

  // 隐私政策
  GetPage(
      name: RouterName.userSystemSettingPrivacy,
      page: () => SystemSettingPrivacyPage(),
      binding: SystemSettingPrivacyBinding()),

  // 用户协议
  GetPage(
      name: RouterName.userSystemSettingUserAgreement,
      page: () => SystemSettingUserAgreementPage(),
      binding: SystemSettingUserAgreementBinding()),
  // 服务地址设置
  GetPage(
      name: RouterName.serverUrlSetting,
      page: () => ServerUrlSettingPage(),
      binding: ServerUrlSettingBinding()),
  // 意见反馈
  GetPage(
      name: RouterName.feedBack,
      page: () => FeedBackPage(),
      binding: FeedBackBinding()),

  GetPage(
      name: RouterName.electronIdcard,
      page: () => ElectronIdcardPage(),
      binding: ElectronIdcardBinding()),

  // 我的订单
  GetPage(
      name: RouterName.userMyOrderList,
      page: () => MyOrderListPage(),
      binding: MyOrderListBinding()),
  GetPage(
      name: RouterName.userMyOrderDetail,
      page: () => MyOrderDetailPage(),
      binding: MyOrderDetailBinding()),

  GetPage(
      name: RouterName.userAccountIndex,
      page: () => UserAccountIndexPage(),
      binding: UserAccountIndexBinding()),
  GetPage(
      name: RouterName.userAccountUpdatePassword,
      page: () => UserAccountUpdatePasswordPage(),
      binding: UserAccountUpdatePasswordBinding()),

  // 隐私
  GetPage(
      name: RouterName.userPrivacyDownloadInfo,
      page: () => UserPrivacyDownloadInfoPage(),
      binding: UserPrivacyDownloadInfoBinding()),
  GetPage(
      name: RouterName.userPrivacyIndex,
      page: () => UserPrivacyIndexPage(),
      binding: UserPrivacyIndexBinding()),
  GetPage(
      name: RouterName.userPrivacyPermission,
      page: () => UserPrivacyPermissionPage(),
      binding: UserPrivacyPermissionBinding()),
  GetPage(
      name: RouterName.userPrivacyRecommend,
      page: () => UserPrivacyRecommandPage(),
      binding: UserPrivacyRecommandBinding()),
  GetPage(
      name: RouterName.userPrivacyAppPermission,
      page: () => UserPrivacyAppPermissionPage(),
      binding: UserPrivacyAppPermissionBinding()),
  GetPage(
      name: RouterName.userPrivacyCollectInfo,
      page: () => UserPrivacyInfoCollectPage(),
      binding: UserPrivacyInfoCollectBinding()),
  GetPage(
      name: RouterName.userPrivacyOtherInfo,
      page: () => UserPrivacyInfoOtherPage(),
      binding: UserPrivacyInfoOtherBinding()),
  GetPage(
      name: RouterName.appAbout,
      page: () => AppAboutPage(),
      binding: AppAboutBinding()),
  GetPage(
      name: RouterName.userAccountCancel,
      page: () => UserAccountCancelPage(),
      binding: UserAccountCancelBinding()),
];
